<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="__PUBLIC__/admin/sncss/css/style.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/admin/sncss/css/combo.select.css" rel="stylesheet" type="text/css" />

</head>

<body>

	<div class="place">
	<span>位置：</span>
	<ul class="placeul">
	<li><a>首页</a></li>
	<li><a>管理员管理</a></li>
	<li><a>修改管理员</a></li>
	</ul>
	</div>

	<div class="formbody">

	<div class="formtitle"><span>管理员信息</span></div>
	  <form id="form1" name="form1" method="post" action="{:U('/Home/Admin/edit_admin')}" onsubmit="return form1_submit();">
		  <input name="id"  type="hidden" class="dfinput" value="{$admindata['heard_admin_id']}" />
			<ul class="forminfo">
				<li><label>用户名</label><input name="username" id="username" type="text" class="dfinput" value="{$admindata['heard_adminname']}" /><i></i></li>
				<li><label>密码</label><input name="password" id="password" type="text" class="dfinput" value="" placeholder="不输入即为不修改原密码" /><i></i></li>
				<li><label>性别</label>
					<label><input name="sex" type="radio" value="1" <?php if($admindata['sex']==1){echo "checked='checked'";}?> />男</label>
					<label><input name="sex" type="radio" value="2" <?php if($admindata['sex']==2){echo "checked='checked'";}?> />女</label>
				</li>
				<li><label>类型</label>
					<label><input name="founder" type="radio" value="0" <?php if($admindata['founder']==0){echo "checked='checked'";}?> />管理员</label>
					<label><input name="founder" type="radio" value="3" <?php if($admindata['founder']==3){echo "checked='checked'";}?> />市场部</label>
					<label><input name="founder" type="radio" value="4" <?php if($admindata['founder']==4){echo "checked='checked'";}?> />运营部</label>
				</li>
				<li><label>权限</label>
				<label><input type='checkbox' name='power_list[]' value='member' <?php echo strstr($admindata['powerlist'],'member')?'checked="checked"':'';?>>主播管理</label>
				<label><input type='checkbox' name='power_list[]' value='audit' <?php echo strstr($admindata['powerlist'],'audit')?'checked="checked"':'';?>>审核管理</label>
				<label><input type='checkbox' name='power_list[]' value='media' <?php echo strstr($admindata['powerlist'],'media')?'checked="checked"':'';?>>自媒体管理</label>
				<label><input type='checkbox' name='power_list[]' value='bgm' <?php echo strstr($admindata['powerlist'],'bgm')?'checked="checked"':'';?>>背景音管理</label>
				<label><input type='checkbox' name='power_list[]' value='sign' <?php echo strstr($admindata['powerlist'],'sign')?'checked="checked"':'';?>>签约管理</label>
				<label><input type='checkbox' name='power_list[]' value='show' <?php echo strstr($admindata['powerlist'],'show')?'checked="checked"':'';?>>展示管理</label>
				<label><input type='checkbox' name='power_list[]' value='order' <?php echo strstr($admindata['powerlist'],'order')?'checked="checked"':'';?>>订单管理</label>
				<label><input type='checkbox' name='power_list[]' value='send' <?php echo strstr($admindata['powerlist'],'send')?'checked="checked"':'';?>>值班主播</label>
				<label><input type='checkbox' name='power_list[]' value='message' <?php echo strstr($admindata['powerlist'],'message')?'checked="checked"':'';?>>消息管理</label>
				<label><input type='checkbox' name='power_list[]' value='money' <?php echo strstr($admindata['powerlist'],'money')?'checked="checked"':'';?>>财务管理</label>
				<label><input type='checkbox' name='power_list[]' value='work' <?php echo strstr($admindata['powerlist'],'work')?'checked="checked"':'';?>>工单管理</label>
				<label><input type='checkbox' name='power_list[]' value='audio' <?php echo strstr($admindata['powerlist'],'audio')?'checked="checked"':'';?>>音频管理</label>
				<label><input type='checkbox' name='power_list[]' value='add_del' <?php echo strstr($admindata['powerlist'],'add_del')?'checked="checked"':'';?>>加钱扣钱</label>
				<label><input type='checkbox' name='power_list[]' value='inside' <?php echo strstr($admindata['powerlist'],'inside')?'checked="checked"':'';?>>内部账号</label>
				<label><input type='checkbox' name='power_list[]' value='system' <?php echo strstr($admindata['powerlist'],'system')?'checked="checked"':'';?>>系统管理</label>
				</li>
				<li><br><br><label>&nbsp;</label>
					<input name="" type="submit" class="btn" id="overflow" value="确认"/>
				</li>
			</ul>
		</form>
	</div>
</body>
<script src="__PUBLIC__/admin/Js/jquery-1.7.2.min.js"></script>
<script src="__PUBLIC__/layer/layer.js"></script>
<script type="text/javascript">
function form1_submit(){
	var username= $('#username').val();
	if(username.length == 0){
		layer.msg('请填写账号');return false;
	}
	var len=$("input[name='power_list[]']:checked").val();
	if(len==undefined){
		alert('请分配管理员权限');return false;
	}
	$("#overflow").attr("disabled","disabled");
	layer.load(1, {shade: [0.8, '#393D49']});
}
</script>
</html>
